<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>SmartCanteen—登录</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.6 -->
  <link rel="stylesheet" href="../css/AdminLTE/bootstrap/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link href="https://cdn.bootcss.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
  <!-- Ionicons -->
  <link href="https://cdn.bootcss.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet">
  <!-- Theme style -->
  <link rel="stylesheet" href="../css/AdminLTE/dist/css/AdminLTE.min.css">
  <!-- iCheck -->
  <link rel="stylesheet" href="../css/AdminLTE/plugins/iCheck/square/blue.css">
  <style>
  	html{
  		overflow: hidden;
  	}
  	.form-control{
  		height: 44px;
   		margin-bottom: 28px;
  	}
  	.alert{
  		position: absolute;
	    top: 0px;
	    right: 0px;
	    width: 336px;
	    display: none;
  	}
  	.redalert{
  		border-color: #dd4b39;
  		
  	}
  	
  	#include{
			background:url("../imgs/loginbg.JPG") no-repeat;
			height: 100%;
      width: 100%;
			position: fixed;
			background-size: 100% 100%;  
		}
  </style>

</head>
<body class="hold-transition login-page" ng-app="Login" ng-controller="loginCtrl">
	<div id="include">
		<button type="submit" style='width: 200px;font-size: 16px;position: fixed;top: 20px;right: 40px;' 
	class="btn btn-lg btn-info btn-block" ng-click = "jumpToRoleAuthorityControl()">前往角色权限控制登录页</button>
<div class="login-box" style="margin: 10% auto;">
  <div class="login-logo">
    <b style="color: #f0f0f0;">系统登录</b>
  </div>
  <!-- /.login-logo -->
  <div class="login-box-body">
   <!-- <p class="login-box-msg"></p>-->
					<button type="button" class="btn btn-lg btn-info btn-block" style="margin-bottom: 20px;" data-toggle="modal" data-target="#chooseC">{{corporationName}}</button>
    <form>
      <div class="form-group has-feedback">
        <input type="text" class="form-control" placeholder="请输入账号" ng-required = "true" ng-model="user.user_name" ng-focus = "removeE()" id="usernameInput">
        <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
      </div>
      <div class="form-group has-feedback">
        <input type="password" class="form-control" placeholder="请输入密码" ng-required = "true" ng-focus = "removeE()" ng-model = "user.password">
        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
      </div>
      <!--<div class="form-group has-feedback">
        <input type="file" class="form-control" id='uiui'>
      </div>-->
      <div class="row">
        <!--<div class="col-xs-8">
          <div class="checkbox icheck">
            <label>
              <input type="checkbox"> 记住密码
            </label>
          </div>
        </div>-->
        <!-- /.col -->
        <div class="col-xs-12">
          <button type="submit" class="btn btn-lg btn-info btn-block" ng-click = "login()">登录</button>
<!--          <button type="button" class="btn btn-lg btn-primary btn-block" ng-click = "test()">测试</button>-->

        </div>
        <!-- /.col -->
      </div>
    </form>
  </div>
  <!-- /.login-box-body -->
</div>
</div>
<!-- /.login-box -->
<div class="alert alert-warning alert-dismissible" id ="ErrorUser">
	<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
	<h4 style="text-align: center;" > <i class="icon fa fa-close pull-left"></i><span id="errorStr"></span></h4>
</div>

<!--
	作者：leeeeyx@hotmail.com
	时间：2017-07-04
	描述：企业选择
-->
<div class="modal fade" id="chooseC" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title" id="myModalLabel" style="text-align: center;">选择企业</h4>
      </div>
      <form>
	      <div class="modal-body">
	        <input class="form-control" placeholder="请输入企业编码" ng-required="true" ng-model="corporationCode"/>
	      </div>
	      <div class="modal-footer">
	        <button type="button" class="btn btn-default btn-lg pull-left" data-dismiss="modal">取消</button>
	        <button type="submit" class="btn btn-primary btn-lg" ng-click="searchCorporation()">确定</button>
	      </div>
      </form>
    </div>
  </div>
</div>
<!--
	作者：leeeeyx@hotmail.com
	时间：2017-07-04
	描述：错误信息
-->
<div class="alert alert-warning alert-dismissible" id="noC" style="z-index: 100000">
	<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
	<h4 style="text-align: center;" > <i class="icon fa fa-close pull-left"></i><span>企业不存在!</span></h4>
</div>
<div class="alert alert-warning alert-dismissible" id="haveToChoose" style="z-index: 100000">
	<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
	<h4 style="text-align: center;" > <i class="icon fa fa-close pull-left"></i><span>请选择企业!</span></h4>
</div>
<!-- jQuery 2.2.3 -->
<script src="../css/AdminLTE/plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- WebStorageCache - 0.0.3 -->
<script src="../js/web-storage-cache.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="../css/AdminLTE/bootstrap/js/bootstrap.min.js"></script>
<!-- Angular -->
<script src="http://apps.bdimg.com/libs/angular.js/1.4.6/angular.min.js"></script>
<script src="http://apps.bdimg.com/libs/angular-route/1.3.13/angular-route.js"></script>
<script src="../js/validate.js"></script>
<script src="../js/loginCtrl.js"></script>
</body>
</html>
